﻿using System.Collections.Generic;

namespace  OnePiece.Core.Extension.Paging
{
    public enum LogicalOperator
    {
        And,
        Or
    }

    public enum ComparisonOperator
    {
        Equal,
        NotEqual,
        Less, 
        LessOrEqual,
        Greater,
        GreaterOrEqual, 
        StartsWith,
        DoesNotStartsWith,
        IsIn,
        IsNotIn,
        EndsWith,
        DoesNotEndsWith,
        Contains,
        DoesNotContains
    }



    public class PageExtensionHelperFilter
    {
        public LogicalOperator GroupOn { get; set; }
        public List<PagingExtensionHelperFilterRule> Rules { get; set; }
    }

    public class PagingExtensionHelperFilterRule
    {
        public string FilterField { get; set; }
        public ComparisonOperator FilterOperator { get; set; }
        public string FilterValue { get; set; }
    }


}
